<?php class Planets { 

    /***
     * DB Fields: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $id;

    /***
     * DB Fields: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $name;

    /***
     * DB Fields: description
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $description;

    /***
     * DB Fields: sizeMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $sizeMax;

    /***
     * DB Fields: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $size;

    /***
     * DB Fields: canBeConquisted
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $canBeConquisted;

    /***
     * DB Fields: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $population;

    /***
     * DB Fields: populationMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $populationMax;

    /***
     * DB Fields: charId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $charId;

    /***
     * DB Fields: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $systemId;

    /***
     * DB Fields: iron
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iron;

    /***
     * DB Fields: ironMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $ironMax;

    /***
     * DB Fields: titanium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titanium;

    /***
     * DB Fields: titaniumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titaniumMax;

    /***
     * DB Fields: iridium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridium;

    /***
     * DB Fields: iridiumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridiumMax;

    /***
     * DB Fields: carbonNT
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNT;

    /***
     * DB Fields: carbonNTMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNTMax;

    /***
     * DB Fields: credits
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $credits;

    /***
     * DB Fields: hidrogen
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogen;

    /***
     * DB Fields: hidrogenMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogenMax;

    /***
     * DB Fields: img_deep
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $img_deep;

    /***
     * DB Fields: img_earth
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $img_earth;

    /***
     * DB Fields: img_sky
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $img_sky;

    /***
     * DB Fields: img_orbit
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $img_orbit;

    /***
     * DB Fields: ironHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $ironHour;

    /***
     * DB Fields: ironRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $ironRatio;

    /***
     * DB Fields: titaniumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titaniumHour;

    /***
     * DB Fields: titaniumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titaniumRatio;

    /***
     * DB Fields: iridiumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridiumHour;

    /***
     * DB Fields: iridiumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridiumRatio;

    /***
     * DB Fields: carbonNTHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNTHour;

    /***
     * DB Fields: carbonNTRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNTRatio;

    /***
     * DB Fields: creditsHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $creditsHour;

    /***
     * DB Fields: hidrogenHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogenHour;

    /***
     * DB Fields: hidrogenRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogenRatio;

    /***
     * DB Fields: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $position;

//--------------- GET METHODS ----------------------------- //
    /***
     * Get value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result id
     **/
    function get_id( ) {
        // returns the value of id
        return $this->id;
    }


    /***
     * Get value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result name
     **/
    function get_name( ) {
        // returns the value of name
        return $this->name;
    }


    /***
     * Get value for field: description
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result description
     **/
    function get_description( ) {
        // returns the value of description
        return $this->description;
    }


    /***
     * Get value for field: sizeMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result sizeMax
     **/
    function get_sizeMax( ) {
        // returns the value of sizeMax
        return $this->sizeMax;
    }


    /***
     * Get value for field: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result size
     **/
    function get_size( ) {
        // returns the value of size
        return $this->size;
    }


    /***
     * Get value for field: canBeConquisted
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result canBeConquisted
     **/
    function get_canBeConquisted( ) {
        // returns the value of canBeConquisted
        return $this->canBeConquisted;
    }


    /***
     * Get value for field: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result population
     **/
    function get_population( ) {
        // returns the value of population
        return $this->population;
    }


    /***
     * Get value for field: populationMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result populationMax
     **/
    function get_populationMax( ) {
        // returns the value of populationMax
        return $this->populationMax;
    }


    /***
     * Get value for field: charId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result charId
     **/
    function get_charId( ) {
        // returns the value of charId
        return $this->charId;
    }


    /***
     * Get value for field: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result systemId
     **/
    function get_systemId( ) {
        // returns the value of systemId
        return $this->systemId;
    }


    /***
     * Get value for field: iron
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iron
     **/
    function get_iron( ) {
        // returns the value of iron
        return $this->iron;
    }


    /***
     * Get value for field: ironMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result ironMax
     **/
    function get_ironMax( ) {
        // returns the value of ironMax
        return $this->ironMax;
    }


    /***
     * Get value for field: titanium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titanium
     **/
    function get_titanium( ) {
        // returns the value of titanium
        return $this->titanium;
    }


    /***
     * Get value for field: titaniumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titaniumMax
     **/
    function get_titaniumMax( ) {
        // returns the value of titaniumMax
        return $this->titaniumMax;
    }


    /***
     * Get value for field: iridium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridium
     **/
    function get_iridium( ) {
        // returns the value of iridium
        return $this->iridium;
    }


    /***
     * Get value for field: iridiumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridiumMax
     **/
    function get_iridiumMax( ) {
        // returns the value of iridiumMax
        return $this->iridiumMax;
    }


    /***
     * Get value for field: carbonNT
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNT
     **/
    function get_carbonNT( ) {
        // returns the value of carbonNT
        return $this->carbonNT;
    }


    /***
     * Get value for field: carbonNTMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNTMax
     **/
    function get_carbonNTMax( ) {
        // returns the value of carbonNTMax
        return $this->carbonNTMax;
    }


    /***
     * Get value for field: credits
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result credits
     **/
    function get_credits( ) {
        // returns the value of credits
        return $this->credits;
    }


    /***
     * Get value for field: hidrogen
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogen
     **/
    function get_hidrogen( ) {
        // returns the value of hidrogen
        return $this->hidrogen;
    }


    /***
     * Get value for field: hidrogenMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogenMax
     **/
    function get_hidrogenMax( ) {
        // returns the value of hidrogenMax
        return $this->hidrogenMax;
    }


    /***
     * Get value for field: img_deep
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result img_deep
     **/
    function get_img_deep( ) {
        // returns the value of img_deep
        return $this->img_deep;
    }


    /***
     * Get value for field: img_earth
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result img_earth
     **/
    function get_img_earth( ) {
        // returns the value of img_earth
        return $this->img_earth;
    }


    /***
     * Get value for field: img_sky
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result img_sky
     **/
    function get_img_sky( ) {
        // returns the value of img_sky
        return $this->img_sky;
    }


    /***
     * Get value for field: img_orbit
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result img_orbit
     **/
    function get_img_orbit( ) {
        // returns the value of img_orbit
        return $this->img_orbit;
    }


    /***
     * Get value for field: ironHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result ironHour
     **/
    function get_ironHour( ) {
        // returns the value of ironHour
        return $this->ironHour;
    }


    /***
     * Get value for field: ironRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result ironRatio
     **/
    function get_ironRatio( ) {
        // returns the value of ironRatio
        return $this->ironRatio;
    }


    /***
     * Get value for field: titaniumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titaniumHour
     **/
    function get_titaniumHour( ) {
        // returns the value of titaniumHour
        return $this->titaniumHour;
    }


    /***
     * Get value for field: titaniumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titaniumRatio
     **/
    function get_titaniumRatio( ) {
        // returns the value of titaniumRatio
        return $this->titaniumRatio;
    }


    /***
     * Get value for field: iridiumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridiumHour
     **/
    function get_iridiumHour( ) {
        // returns the value of iridiumHour
        return $this->iridiumHour;
    }


    /***
     * Get value for field: iridiumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridiumRatio
     **/
    function get_iridiumRatio( ) {
        // returns the value of iridiumRatio
        return $this->iridiumRatio;
    }


    /***
     * Get value for field: carbonNTHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNTHour
     **/
    function get_carbonNTHour( ) {
        // returns the value of carbonNTHour
        return $this->carbonNTHour;
    }


    /***
     * Get value for field: carbonNTRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNTRatio
     **/
    function get_carbonNTRatio( ) {
        // returns the value of carbonNTRatio
        return $this->carbonNTRatio;
    }


    /***
     * Get value for field: creditsHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result creditsHour
     **/
    function get_creditsHour( ) {
        // returns the value of creditsHour
        return $this->creditsHour;
    }


    /***
     * Get value for field: hidrogenHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogenHour
     **/
    function get_hidrogenHour( ) {
        // returns the value of hidrogenHour
        return $this->hidrogenHour;
    }


    /***
     * Get value for field: hidrogenRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogenRatio
     **/
    function get_hidrogenRatio( ) {
        // returns the value of hidrogenRatio
        return $this->hidrogenRatio;
    }


    /***
     * Get value for field: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result position
     **/
    function get_position( ) {
        // returns the value of position
        return $this->position;
    }


//--------------- SET METHODS ----------------------------- //
    /***
     * Set value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function set_id( $id ) {
        // sets the value of id
        $this->id = $id;
    }

    /***
     * Set value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param name
     * @result void
     **/
    function set_name( $name ) {
        // sets the value of name
        $this->name = $name;
    }

    /***
     * Set value for field: description
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param description
     * @result void
     **/
    function set_description( $description ) {
        // sets the value of description
        $this->description = $description;
    }

    /***
     * Set value for field: sizeMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param sizeMax
     * @result void
     **/
    function set_sizeMax( $sizeMax ) {
        // sets the value of sizeMax
        $this->sizeMax = $sizeMax;
    }

    /***
     * Set value for field: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param size
     * @result void
     **/
    function set_size( $size ) {
        // sets the value of size
        $this->size = $size;
    }

    /***
     * Set value for field: canBeConquisted
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param canBeConquisted
     * @result void
     **/
    function set_canBeConquisted( $canBeConquisted ) {
        // sets the value of canBeConquisted
        $this->canBeConquisted = $canBeConquisted;
    }

    /***
     * Set value for field: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param population
     * @result void
     **/
    function set_population( $population ) {
        // sets the value of population
        $this->population = $population;
    }

    /***
     * Set value for field: populationMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param populationMax
     * @result void
     **/
    function set_populationMax( $populationMax ) {
        // sets the value of populationMax
        $this->populationMax = $populationMax;
    }

    /***
     * Set value for field: charId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param charId
     * @result void
     **/
    function set_charId( $charId ) {
        // sets the value of charId
        $this->charId = $charId;
    }

    /***
     * Set value for field: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param systemId
     * @result void
     **/
    function set_systemId( $systemId ) {
        // sets the value of systemId
        $this->systemId = $systemId;
    }

    /***
     * Set value for field: iron
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iron
     * @result void
     **/
    function set_iron( $iron ) {
        // sets the value of iron
        $this->iron = $iron;
    }

    /***
     * Set value for field: ironMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param ironMax
     * @result void
     **/
    function set_ironMax( $ironMax ) {
        // sets the value of ironMax
        $this->ironMax = $ironMax;
    }

    /***
     * Set value for field: titanium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titanium
     * @result void
     **/
    function set_titanium( $titanium ) {
        // sets the value of titanium
        $this->titanium = $titanium;
    }

    /***
     * Set value for field: titaniumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titaniumMax
     * @result void
     **/
    function set_titaniumMax( $titaniumMax ) {
        // sets the value of titaniumMax
        $this->titaniumMax = $titaniumMax;
    }

    /***
     * Set value for field: iridium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridium
     * @result void
     **/
    function set_iridium( $iridium ) {
        // sets the value of iridium
        $this->iridium = $iridium;
    }

    /***
     * Set value for field: iridiumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridiumMax
     * @result void
     **/
    function set_iridiumMax( $iridiumMax ) {
        // sets the value of iridiumMax
        $this->iridiumMax = $iridiumMax;
    }

    /***
     * Set value for field: carbonNT
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNT
     * @result void
     **/
    function set_carbonNT( $carbonNT ) {
        // sets the value of carbonNT
        $this->carbonNT = $carbonNT;
    }

    /***
     * Set value for field: carbonNTMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNTMax
     * @result void
     **/
    function set_carbonNTMax( $carbonNTMax ) {
        // sets the value of carbonNTMax
        $this->carbonNTMax = $carbonNTMax;
    }

    /***
     * Set value for field: credits
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param credits
     * @result void
     **/
    function set_credits( $credits ) {
        // sets the value of credits
        $this->credits = $credits;
    }

    /***
     * Set value for field: hidrogen
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogen
     * @result void
     **/
    function set_hidrogen( $hidrogen ) {
        // sets the value of hidrogen
        $this->hidrogen = $hidrogen;
    }

    /***
     * Set value for field: hidrogenMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogenMax
     * @result void
     **/
    function set_hidrogenMax( $hidrogenMax ) {
        // sets the value of hidrogenMax
        $this->hidrogenMax = $hidrogenMax;
    }

    /***
     * Set value for field: img_deep
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param img_deep
     * @result void
     **/
    function set_img_deep( $img_deep ) {
        // sets the value of img_deep
        $this->img_deep = $img_deep;
    }

    /***
     * Set value for field: img_earth
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param img_earth
     * @result void
     **/
    function set_img_earth( $img_earth ) {
        // sets the value of img_earth
        $this->img_earth = $img_earth;
    }

    /***
     * Set value for field: img_sky
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param img_sky
     * @result void
     **/
    function set_img_sky( $img_sky ) {
        // sets the value of img_sky
        $this->img_sky = $img_sky;
    }

    /***
     * Set value for field: img_orbit
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param img_orbit
     * @result void
     **/
    function set_img_orbit( $img_orbit ) {
        // sets the value of img_orbit
        $this->img_orbit = $img_orbit;
    }

    /***
     * Set value for field: ironHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param ironHour
     * @result void
     **/
    function set_ironHour( $ironHour ) {
        // sets the value of ironHour
        $this->ironHour = $ironHour;
    }

    /***
     * Set value for field: ironRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param ironRatio
     * @result void
     **/
    function set_ironRatio( $ironRatio ) {
        // sets the value of ironRatio
        $this->ironRatio = $ironRatio;
    }

    /***
     * Set value for field: titaniumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titaniumHour
     * @result void
     **/
    function set_titaniumHour( $titaniumHour ) {
        // sets the value of titaniumHour
        $this->titaniumHour = $titaniumHour;
    }

    /***
     * Set value for field: titaniumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titaniumRatio
     * @result void
     **/
    function set_titaniumRatio( $titaniumRatio ) {
        // sets the value of titaniumRatio
        $this->titaniumRatio = $titaniumRatio;
    }

    /***
     * Set value for field: iridiumHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridiumHour
     * @result void
     **/
    function set_iridiumHour( $iridiumHour ) {
        // sets the value of iridiumHour
        $this->iridiumHour = $iridiumHour;
    }

    /***
     * Set value for field: iridiumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridiumRatio
     * @result void
     **/
    function set_iridiumRatio( $iridiumRatio ) {
        // sets the value of iridiumRatio
        $this->iridiumRatio = $iridiumRatio;
    }

    /***
     * Set value for field: carbonNTHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNTHour
     * @result void
     **/
    function set_carbonNTHour( $carbonNTHour ) {
        // sets the value of carbonNTHour
        $this->carbonNTHour = $carbonNTHour;
    }

    /***
     * Set value for field: carbonNTRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNTRatio
     * @result void
     **/
    function set_carbonNTRatio( $carbonNTRatio ) {
        // sets the value of carbonNTRatio
        $this->carbonNTRatio = $carbonNTRatio;
    }

    /***
     * Set value for field: creditsHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param creditsHour
     * @result void
     **/
    function set_creditsHour( $creditsHour ) {
        // sets the value of creditsHour
        $this->creditsHour = $creditsHour;
    }

    /***
     * Set value for field: hidrogenHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogenHour
     * @result void
     **/
    function set_hidrogenHour( $hidrogenHour ) {
        // sets the value of hidrogenHour
        $this->hidrogenHour = $hidrogenHour;
    }

    /***
     * Set value for field: hidrogenRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogenRatio
     * @result void
     **/
    function set_hidrogenRatio( $hidrogenRatio ) {
        // sets the value of hidrogenRatio
        $this->hidrogenRatio = $hidrogenRatio;
    }

    /***
     * Set value for field: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param position
     * @result void
     **/
    function set_position( $position ) {
        // sets the value of position
        $this->position = $position;
    }

//--------------- CRUD METHODS ----------------------------- //
    /***
     * Create a new Record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param name
     * @param description
     * @param sizeMax
     * @param size
     * @param canBeConquisted
     * @param population
     * @param populationMax
     * @param charId
     * @param systemId
     * @param iron
     * @param ironMax
     * @param titanium
     * @param titaniumMax
     * @param iridium
     * @param iridiumMax
     * @param carbonNT
     * @param carbonNTMax
     * @param credits
     * @param hidrogen
     * @param hidrogenMax
     * @param img_deep
     * @param img_earth
     * @param img_sky
     * @param img_orbit
     * @param ironHour
     * @param ironRatio
     * @param titaniumHour
     * @param titaniumRatio
     * @param iridiumHour
     * @param iridiumRatio
     * @param carbonNTHour
     * @param carbonNTRatio
     * @param creditsHour
     * @param hidrogenHour
     * @param hidrogenRatio
     * @param position
     * @result void
     **/
    function createnew_planets( $id, $name, $description, $sizeMax, $size, $canBeConquisted, $population, $populationMax, $charId, $systemId, $iron, $ironMax, $titanium, $titaniumMax, $iridium, $iridiumMax, $carbonNT, $carbonNTMax, $credits, $hidrogen, $hidrogenMax, $img_deep, $img_earth, $img_sky, $img_orbit, $ironHour, $ironRatio, $titaniumHour, $titaniumRatio, $iridiumHour, $iridiumRatio, $carbonNTHour, $carbonNTRatio, $creditsHour, $hidrogenHour, $hidrogenRatio, $position ) {

        // items to be inserted in the database 
        $_obj = array($id,
                      $name,
                      $description,
                      $sizeMax,
                      $size,
                      $canBeConquisted,
                      $population,
                      $populationMax,
                      $charId,
                      $systemId,
                      $iron,
                      $ironMax,
                      $titanium,
                      $titaniumMax,
                      $iridium,
                      $iridiumMax,
                      $carbonNT,
                      $carbonNTMax,
                      $credits,
                      $hidrogen,
                      $hidrogenMax,
                      $img_deep,
                      $img_earth,
                      $img_sky,
                      $img_orbit,
                      $ironHour,
                      $ironRatio,
                      $titaniumHour,
                      $titaniumRatio,
                      $iridiumHour,
                      $iridiumRatio,
                      $carbonNTHour,
                      $carbonNTRatio,
                      $creditsHour,
                      $hidrogenHour,
                      $hidrogenRatio,
                      $position); 

        // database object connection
        $dbConn = $GLOBALS['dbConn'];

        // perform insert in the database
        $dbConn->insert("planets", $_obj);
    }

    /***
     * Retrived an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result new Planets
     **/
    function get_planets( $id ) {

        // retrive the data
        $dbConn = $GLOBALS['dbConn'];

        // retrieved value in the database
        $_resultSet = $dbConn->doQuery("SELECT * FROM planets WHERE id = '$id'");

        $__planetsObj = new planets();
        // return the retrived from the database

        // create a new object
        $__obj = new Planets();
        $__obj->set_id($_resultSet[0]['id']);
        $__obj->set_name($_resultSet[0]['name']);
        $__obj->set_description($_resultSet[0]['description']);
        $__obj->set_sizeMax($_resultSet[0]['sizeMax']);
        $__obj->set_size($_resultSet[0]['size']);
        $__obj->set_canBeConquisted($_resultSet[0]['canBeConquisted']);
        $__obj->set_population($_resultSet[0]['population']);
        $__obj->set_populationMax($_resultSet[0]['populationMax']);
        $__obj->set_charId($_resultSet[0]['charId']);
        $__obj->set_systemId($_resultSet[0]['systemId']);
        $__obj->set_iron($_resultSet[0]['iron']);
        $__obj->set_ironMax($_resultSet[0]['ironMax']);
        $__obj->set_titanium($_resultSet[0]['titanium']);
        $__obj->set_titaniumMax($_resultSet[0]['titaniumMax']);
        $__obj->set_iridium($_resultSet[0]['iridium']);
        $__obj->set_iridiumMax($_resultSet[0]['iridiumMax']);
        $__obj->set_carbonNT($_resultSet[0]['carbonNT']);
        $__obj->set_carbonNTMax($_resultSet[0]['carbonNTMax']);
        $__obj->set_credits($_resultSet[0]['credits']);
        $__obj->set_hidrogen($_resultSet[0]['hidrogen']);
        $__obj->set_hidrogenMax($_resultSet[0]['hidrogenMax']);
        $__obj->set_img_deep($_resultSet[0]['img_deep']);
        $__obj->set_img_earth($_resultSet[0]['img_earth']);
        $__obj->set_img_sky($_resultSet[0]['img_sky']);
        $__obj->set_img_orbit($_resultSet[0]['img_orbit']);
        $__obj->set_ironHour($_resultSet[0]['ironHour']);
        $__obj->set_ironRatio($_resultSet[0]['ironRatio']);
        $__obj->set_titaniumHour($_resultSet[0]['titaniumHour']);
        $__obj->set_titaniumRatio($_resultSet[0]['titaniumRatio']);
        $__obj->set_iridiumHour($_resultSet[0]['iridiumHour']);
        $__obj->set_iridiumRatio($_resultSet[0]['iridiumRatio']);
        $__obj->set_carbonNTHour($_resultSet[0]['carbonNTHour']);
        $__obj->set_carbonNTRatio($_resultSet[0]['carbonNTRatio']);
        $__obj->set_creditsHour($_resultSet[0]['creditsHour']);
        $__obj->set_hidrogenHour($_resultSet[0]['hidrogenHour']);
        $__obj->set_hidrogenRatio($_resultSet[0]['hidrogenRatio']);
        $__obj->set_position($_resultSet[0]['position']);


        return $__obj;
    }

    /***
     * Update an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param itemsToBeUpdated = array()
     * @result void
     **/
    function update_planets( $id, $itemsToBeUpdated = array() ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs update in the database
         foreach($itemsToBeUpdated as $_fName => $_fVal) { 
               $dbConn->addValuePair($_fName, $_fVal);
         }

         // perform update operation
         $dbConn->update("planets", "id = '$id'");
    }

    /***
     * Delete an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function delete_planets( $id ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs deletion of data
         $dbConn->delete("planets", "id = '$id'");
    }

    /***
     * Retrived list of objects base on a given parameters: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param conditionalStatement = ''
     * @result collection of objects: Planets
     **/
    function list_planets( $conditionalStatement = '' ) {

         $dbConn = $GLOBALS['dbConn'];
         // check if there is a given parameter list
         if(!empty($conditionalStatement)) { 
              $sqlStatement = "SELECT * FROM planets WHERE $conditionalStatement"; 
         } else { 
              $sqlStatement = "SELECT * FROM planets";
         }

         // retrieve the values base on the query result
         $__resObj = $dbConn->doQuery($sqlStatement);

         $__collectionOfObjects = array();
         foreach($__resObj as $__rs) { 
            $__newObj = new Planets();

            $__newObj->set_id($__rs['id']);
            $__newObj->set_name($__rs['name']);
            $__newObj->set_description($__rs['description']);
            $__newObj->set_sizeMax($__rs['sizeMax']);
            $__newObj->set_size($__rs['size']);
            $__newObj->set_canBeConquisted($__rs['canBeConquisted']);
            $__newObj->set_population($__rs['population']);
            $__newObj->set_populationMax($__rs['populationMax']);
            $__newObj->set_charId($__rs['charId']);
            $__newObj->set_systemId($__rs['systemId']);
            $__newObj->set_iron($__rs['iron']);
            $__newObj->set_ironMax($__rs['ironMax']);
            $__newObj->set_titanium($__rs['titanium']);
            $__newObj->set_titaniumMax($__rs['titaniumMax']);
            $__newObj->set_iridium($__rs['iridium']);
            $__newObj->set_iridiumMax($__rs['iridiumMax']);
            $__newObj->set_carbonNT($__rs['carbonNT']);
            $__newObj->set_carbonNTMax($__rs['carbonNTMax']);
            $__newObj->set_credits($__rs['credits']);
            $__newObj->set_hidrogen($__rs['hidrogen']);
            $__newObj->set_hidrogenMax($__rs['hidrogenMax']);
            $__newObj->set_img_deep($__rs['img_deep']);
            $__newObj->set_img_earth($__rs['img_earth']);
            $__newObj->set_img_sky($__rs['img_sky']);
            $__newObj->set_img_orbit($__rs['img_orbit']);
            $__newObj->set_ironHour($__rs['ironHour']);
            $__newObj->set_ironRatio($__rs['ironRatio']);
            $__newObj->set_titaniumHour($__rs['titaniumHour']);
            $__newObj->set_titaniumRatio($__rs['titaniumRatio']);
            $__newObj->set_iridiumHour($__rs['iridiumHour']);
            $__newObj->set_iridiumRatio($__rs['iridiumRatio']);
            $__newObj->set_carbonNTHour($__rs['carbonNTHour']);
            $__newObj->set_carbonNTRatio($__rs['carbonNTRatio']);
            $__newObj->set_creditsHour($__rs['creditsHour']);
            $__newObj->set_hidrogenHour($__rs['hidrogenHour']);
            $__newObj->set_hidrogenRatio($__rs['hidrogenRatio']);
            $__newObj->set_position($__rs['position']);

            // add object to collection 
            array_push($__collectionOfObjects, $__newObj);
         }

         // return collection of objects
         return $__collectionOfObjects;
    }

} ?>